import request from '@/utils/request'
import {parseStrEmpty} from "@/utils/ruoyi";

// 查询课程列表
export function listCourse(query) {
  return request({
    url: '/course/list/list',
    method: 'get',
    params: query
  })
}

//获取专业信息
export function getCourse(courId) {
  return request({
    url: '/course/list/' +  parseStrEmpty(courId),
    method: 'get'
  })
}



// 新增阶段
export function addCourse(data) {
  return request({
    url: '/course/list',
    method: 'post',
    data: data
  })
}

export function updateCourse(data) {
  return request({
    url: '/course/list',
    method: 'put',
    data: data
  })
}

// 删除岗位
export function delCourse(courIds) {
  return request({
    url: '/course/list/' + courIds,
    method: 'delete'
  })
}
